<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="UTF-8">
		<title>{$site_config.site_title}</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="/public/static/layui1/css/layui.css" media="all">
		<link rel="stylesheet" href="/public/static/css/font-awesome.min.css">
		<!--CSS引用-->
		{block name="css"}{/block}
		<link rel="stylesheet" href="/public/static/css/admin.css">
		<!--[if lt IE 9]>
    <script src="/public/static/js/html5shiv.min.js"></script>
    <script src="/public/static/js/respond.min.js"></script>
    <![endif]-->
	</head>

	<body>
		<div class="layui-layout layui-layout-admin">
			<!--头部-->
			<div class="layui-header header">
				<a href=""><img class="logo" src="/public/static/images/admin_logo.png" alt=""></a>
				<div class="user-action">
					<a class="" href="/index.php/index/index" target="_blank"><i class="fa fa-home"></i> 网站前台</a>
					<a class="" href="/index.php/adminjcb/system/clear"><i class="fa fa-eraser"></i> 清除缓存</a>
					<a href="/index.php/adminjcb/index/update"><i class="fa fa-user"></i> {:session('admin_name')}</a>
					<a class="" href="{:url('login/logout')}"><i class="fa fa-power-off"></i> 退出系统</a>
				</div>
			</div>

			<!--侧边栏-->
			<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll">
					<ul class="layui-nav layui-nav-tree">
						<li class="layui-nav-item layui-nav-title">
							<a href="/index.php/adminjcb/index/index"><i class="fa fa-home"></i> 网站概览</a>
						</li>
						{foreach name="menu" item="vo"} {if condition="isset($vo['children'])"}
						<li class="layui-nav-item" {if $vo.id==1 && session('admin_id')!=1}style="display: none;" {/if}>
							<a href="javascript:;"><i class="{$vo.icon}"></i> {$vo.title}</a>
							{foreach name="vo['children']" item="v"}
							<dl class="layui-nav-child">
								<dd>
									<a href="{:url($v.name)}"> {$v.title}</a>
								</dd>
							</dl>
							{/foreach}
						</li>
						{else /}
						<li class="layui-nav-item">
							<a href="{:url($vo.name)}"><i class="{$vo.icon}"></i> {$vo.title}</a>
						</li>
						{/if} {/foreach}
						<li class="layui-nav-item" style="height: 30px; text-align: center"></li>
					</ul>
				</div>
			</div>
			<script>
				// 定义全局JS变量
				var GV = {
					current_controller: "adminjcb/{$controller}/"
				};
			</script>
			<!--主体-->
			{block name="body"}{/block}

			<!--底部-->
			<div class="layui-footer footer">
				<div class="layui-main">
					<p>2016 &copy;
						<a href="">Admin 管理系统</a>
					</p>
				</div>
			</div>
		</div>

		<!--JS引用-->
		<script src="/public/static/js/jquery.min.js"></script>
		<script src="/public/static/layui1/layui.js"></script>
		{block name="js"}{/block}
		<script>
			layui.config({
				base: '/public/static/js/'
			}).use('admin');
		</script>

		<!--页面JS脚本-->
		{block name="script"}{/block}
	</body>

</html>